Repository navigation
[None][infra] Prune stale entries from legacy-files.txt - #22019
Ethereal49 wants to merge 1 commit into
Conversation
Signed-off-by: ethereal49 <hongyeluo49@gmail.com>
|
No actionable comments were generated in the recent review. WalkthroughThe changes update source and test path membership in the legacy inventory, pre-commit lists, Ruff formatting exclusions, and the legacy Ruff include list. ChangesFile inventory and lint scope
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Possibly related PRs
Suggested labels: Suggested reviewers: Merge Risk:
|
Description
legacy-files.txtlisted 11 Python paths absent from the Git tree atNVIDIA/TensorRT-LLM:main(70fe2b2a). Ranpython3 scripts/legacy_utils.py prune-filesandpython3 scripts/legacy_utils.py gen-configs. The diff deletes only those paths and their references inruff-legacy.toml,pyproject.toml, and.pre-commit-config.yaml; the 707 valid entries retain their original order. The separate violation snapshot is unchanged.Removed paths (11)
Fixes #21383
Implemented with Codex (AI-assisted)
Test Coverage
python3 scripts/legacy_utils.py check-configs— passed.pytest -q -c "$CPU_PYTEST_INI" --rootdir "$PWD" --noconftest -m cpu_only tests/unittest/scripts/test_legacy_utils.py— 46 passed. The temporary pytest config registerscpu_only; the default invocation stops during collection on this host because the repository-wide conftest imports the TensorRT-LLM build.PR Checklist
Dev Engineer Review
The PR removes 11 stale paths from
legacy-files.txtand the corresponding entries from the Ruff and pre-commit configurations. The changes keep the remaining entries in order and do not modify source code or test files. No behavior regression is evident from this diff.QA Engineer Review
No test changes.
Per-File QA Perspective
.pre-commit-config.yaml: Removes absent paths from thecommon-filesandlegacy-fileshook match lists. This changes which files those hooks select; it does not change hook definitions.legacy-files.txt: Removes 11 paths that are no longer present. This changes the legacy file inventory only.pyproject.toml: Removes the same stale paths from Ruff’s formatting exclusion list. No formatting behavior for existing files changes.ruff-legacy.toml: Removes the stale paths from Ruff’s legacy include list. No test code or test-list files changed.